package com.shop.user.model;

import com.baomidou.mybatisplus.annotation.*;
import com.zijie.core.util.AuditEntity;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Getter
@Setter
@TableName("user")
public class User extends AuditEntity {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField(condition = SqlCondition.LIKE)
    private String username;
    @TableField("enabled")
    private Boolean enabled;
    private Integer locked;
    private String password;
    private String avatar_url;
    private Integer status;
    private LocalDateTime lastLoginTime;
    private String lastLoginIp;
    private Integer userGroupId;
    //用户组名称
    @TableField(exist = false)
    private String userGroupName;
    @TableField(exist = false)
    private String token;
}
